Completed
Push — master ( 5543da...b12456 )
by Donata
02:40
created

video-block.js ➔ ... ➔ ???   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
import Video from './blocks/video/modules/Video';
2
3
document.addEventListener("DOMContentLoaded", () => {
4
    window.HELP_IMPROVE_VIDEOJS = false;
5
6
    let elements = document.querySelectorAll('*[data-module="video-block"]');
7
    if (elements.length > 0) {
8
        window.videos = [];
9
10
        [].forEach.call(elements, (element) => {
11
            window.videos.push(new Video(element));
12
        });
13
    }
14
});